package com.software.aperture.repository;
import com.software.aperture.bean.Photo;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

public interface PhotoRe extends JpaRepository<Photo,Integer> {
    /**
     * 通过照片id来查询
     * @param photoid
     * @return
     */
     Photo findByphotoid(Integer photoid);
    /**
     * 通过照片类型查询
     */
    List<Photo> findByphototype(String phototype);
}
